package com.todo.sight.application.service;

import com.todo.common.common.entity.response.page.PageResult;
import com.todo.sight.application.entity.condition.PoiConditionBO;
import com.todo.sight.application.entity.bo.SightPoiBO;
import com.todo.sight.application.entity.condition.PoiConditionBO;

import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * (SightPoi)表服务接口
 *
 * @author zhangwenxiang
 * @since 2024-03-04 00:19:48
 */
public interface SightPoiService {
    /**
     * 新增景点POI数据
     *
     * @param sightPoiBO
     * @return
     */
    Boolean insertSightPoi(SightPoiBO sightPoiBO);

    /**
     * 批量新增POI数据列表
     *
     * @param sightPoiBOList
     * @return
     */
    List<Long> batchInsertSightPoi(List<SightPoiBO> sightPoiBOList);

    /**
     * 更新POI信息数据
     *
     * @param sightPoiBO
     * @return
     */
    Boolean updateSightPoi(SightPoiBO sightPoiBO);

    /**
     * 根据主键Id删除POI数据
     *
     * @param id
     * @return
     */
    Boolean removeSightPoiById(Long id);

    /**
     * 根据主键Id关闭/开启POI数据
     *
     * @param id
     * @return
     */
    Boolean showSightPoiById(Long id, Integer show);

    /**
     * 根据主键查询POI信息
     *
     * @param id
     * @return
     */
    SightPoiBO querySightPoiById(Long id);

    /**
     * 根据名称和城市查询POI数据列表
     *
     * @param name
     * @param city
     * @return
     */
    List<SightPoiBO> querySightPoiByName(@NotNull String name, String city);

    /**
     * 多条件查询POI数据列表
     *
     * @param poiConditionBO
     * @return
     */
    PageResult<SightPoiBO> querySightPoiByCondition(PoiConditionBO poiConditionBO);

    /**
     * 根据主键列表查询POI数据列表
     *
     * @param poiIdList
     * @return
     */
    List<SightPoiBO> querySightPoiByIdList(List<Long> poiIdList);
}
